<include file="Public/header" title="留言列表" />

<div id="page-wrapper">
    
    <div class="row">
        <div class="col-md-6">
            <form action="{:U('message/index')}" method="post">
                <div class="form-group input-group">
                    <input type="text" class="form-control" name="mobile" placeholder="输入手机号搜索">
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
                    </span>
                </div>
            </form>
        </div>
    </div>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>手机</th>
                <th>邮箱</th>
                <th>公司</th>
                <th>留言</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="v">
            <tr>
                <td>{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.mobile}</td>
                <td>{$v.email}</td>
                <td>{$v.company}</td>
                <td><textarea>{$v.message}</textarea></td>
                <td><if condition="$v[status] eq 1 ">已处理<else /> 未处理</if></td>
                <td><a href="{:U('message/update?id=')}{$v.id}">处理</a> | <a href="{:U('message/delete?id=')}{$v.id}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a></td>
            </tr>
        </foreach>
        </tbody>
    </table>
    {$page}
</div>


<include file="Public/footer" />